//
// Vector_uint16.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

public class Vector_uint16 {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public Vector_uint16(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(Vector_uint16 obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_Vector_uint16(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public Vector_uint16() {
    this(nel3dJNI.new_Vector_uint16__SWIG_0(), true);
  }

  public Vector_uint16(long n) {
    this(nel3dJNI.new_Vector_uint16__SWIG_1(n), true);
  }

  public long size() {
    return nel3dJNI.Vector_uint16_size(swigCPtr, this);
  }

  public long capacity() {
    return nel3dJNI.Vector_uint16_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    nel3dJNI.Vector_uint16_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return nel3dJNI.Vector_uint16_isEmpty(swigCPtr, this);
  }

  public void clear() {
    nel3dJNI.Vector_uint16_clear(swigCPtr, this);
  }

  public void add(long x) {
    nel3dJNI.Vector_uint16_add(swigCPtr, this, x);
  }

  public long get(int i) {
    return nel3dJNI.Vector_uint16_get(swigCPtr, this, i);
  }

  public void set(int i, long val) {
    nel3dJNI.Vector_uint16_set(swigCPtr, this, i, val);
  }

}
